package com.springboot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.springboot.mapper.FoodMapper;
import com.springboot.po.Food;
import com.springboot.service.FoodService;

@Service
public class FoodServiceImpl implements FoodService{
	@Autowired
	FoodMapper foodMapper;
	
	@Override
	public Food getFoodById(int foodId) {
		return foodMapper.getFoodById(foodId);
	}
	
	@Override
	public List<Food> listFoodByBusinessId(Integer businessId) {
		// TODO Auto-generated method stub
		return foodMapper.listFoodByBusinessId(businessId);
	}

}
